import { createRouter, createWebHistory } from "vue-router";
const LayOutPage = () => import("@/pages/LayOut/LayOut.vue");
const ChooseIcon = () => import("@/pages/CHOOSEICON/index.vue");
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "home",
      component: LayOutPage,
      redirect:'/chooseicon',
      children:[
        {
          path: "/chooseicon",
          name: "chooseicon",
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: ChooseIcon,
        },
      ]
    },
   
  ],
});

export default router;
